<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>登录界面</title>
<script src="scripts/jquery.min.js"></script>
</head>
<body>
<form action="login.action" method="post">
    用户名：<input type="text" name="username"><br/>
    密码：<input type="password" name="password"><br/>
    验证码:<input type="text" name="kaptcha" value="" /><img src="kaptcha.jpg" id="captchaImage" title="看不清,点击换一张" /> 
    <script type="text/javascript">
    	$(function(){
    		$('#captchaImage').click(function(){
    			$(this).attr('src','kaptcha.jpg?'+Math.floor(Math.random()*100));
    		});
    	});
    </script>
    <input type="submit" value="登录">
</form>
</body>
</html>